package com.whmskj.xjlhsc.stationmachine.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhsc.controller.vo.Result;
import com.whmskj.xjlhsc.stationmachine.pojo.dto.EnvironmentalTestingDTO;
import com.whmskj.xjlhsc.stationmachine.pojo.vo.EnvironmentalTestingVO;
import com.whmskj.xjlhsc.stationmachine.service.imp.EnvironmentalTestingServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author jiaruchun
 * @date 2025-09-18 16:59
 * @Description: 环境检测
 */
@SaIgnore
@RestController
@RequestMapping("/cockpit/environmentalTesting")
public class EnvironmentalTestingController {
    @Autowired
    private EnvironmentalTestingServiceImpl environmentalTestingServiceImpl;
    @PostMapping
    public Result getEnvironmentalTesting(@RequestBody(required = false) List<EnvironmentalTestingDTO> environmentalTestingDTOList){
        return Result.success(environmentalTestingServiceImpl.getEnvironmentalTesting(environmentalTestingDTOList));
    }
}
